﻿<UserControl x:Class="UIControlWPF.Views.ManageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:UIControlWPF.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
              DataContext="{Binding Main, Source={StaticResource Locator}}" Height="500" Width="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="250"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="37*"/>
            <ColumnDefinition Width="113*"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" TextWrapping="Wrap" Text="Site Url:" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="1" TextWrapping="Wrap" Text="List:" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="2" TextWrapping="Wrap" Text="Web:" HorizontalAlignment="Center" VerticalAlignment="Center"/>

        <TextBox Grid.Column="1" Grid.Row="0" TextWrapping="Wrap" Text="{Binding CurrentSPModel.SiteUrl,Mode=TwoWay}" Margin="8"/>
        <TextBox Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Text="{Binding CurrentSPModel.List,Mode=TwoWay}" Margin="8"/>
        <TextBox Grid.Column="1" Grid.Row="2" TextWrapping="Wrap" Text="{Binding CurrentSPModel.Web,Mode=TwoWay}" Margin="8"/>
        <Button Content="Start Copy Procedure" FontSize="10"
                Margin="5"
                FontWeight="Bold" Grid.Row="5"
                Grid.ColumnSpan="2"
                 Command="{Binding StartRestoreCommand}" CommandParameter="{Binding CurrentSPModel}"/>

    </Grid>
</UserControl>

